import 'package:json_annotation/json_annotation.dart'; 
  
part 'CommArticle.g.dart';


@JsonSerializable()
  class CommArticle extends Object {

  @JsonKey(name: 'data')
  Data data;

  @JsonKey(name: 'code')
  String code;

  @JsonKey(name: 'msg')
  String msg;

  CommArticle(this.data,this.code,this.msg,);

  factory CommArticle.fromJson(Map<String, dynamic> srcJson) => _$CommArticleFromJson(srcJson);

  Map<String, dynamic> toJson() => _$CommArticleToJson(this);

  @override
  String toString() {
    return 'CommArticle{data: $data, code: $code, msg: $msg}';
  }

}

  
@JsonSerializable()
  class Data extends Object {

  @JsonKey(name: 'pageNum')
  int pageNum;

  @JsonKey(name: 'pageSize')
  int pageSize;

  @JsonKey(name: 'size')
  int size;

  @JsonKey(name: 'startRow')
  int startRow;

  @JsonKey(name: 'endRow')
  int endRow;

  @JsonKey(name: 'total')
  int total;

  @JsonKey(name: 'pages')
  int pages;

  @JsonKey(name: 'list')
  List<Article> list;

  @JsonKey(name: 'prePage')
  int prePage;

  @JsonKey(name: 'nextPage')
  int nextPage;

  @JsonKey(name: 'isFirstPage')
  bool isFirstPage;

  @JsonKey(name: 'isLastPage')
  bool isLastPage;

  @JsonKey(name: 'hasPreviousPage')
  bool hasPreviousPage;

  @JsonKey(name: 'hasNextPage')
  bool hasNextPage;

  @JsonKey(name: 'navigatePages')
  int navigatePages;

  @JsonKey(name: 'navigateFirstPage')
  int navigateFirstPage;

  @JsonKey(name: 'navigateLastPage')
  int navigateLastPage;

  @JsonKey(name: 'firstPage')
  int firstPage;

  @JsonKey(name: 'lastPage')
  int lastPage;

  Data(this.pageNum,this.pageSize,this.size,this.startRow,this.endRow,this.total,this.pages,this.list,this.prePage,this.nextPage,this.isFirstPage,this.isLastPage,this.hasPreviousPage,this.hasNextPage,this.navigatePages,this.navigateFirstPage,this.navigateLastPage,this.firstPage,this.lastPage,);

  factory Data.fromJson(Map<String, dynamic> srcJson) => _$DataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$DataToJson(this);

}

  
@JsonSerializable()
  class Article extends Object {

  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'articleId')
  String articleId;

  @JsonKey(name: 'appType')
  int appType;

  @JsonKey(name: 'appName')
  String appName;

  @JsonKey(name: 'articleCateType')
  int articleCateType;

  @JsonKey(name: 'articleCateDesc')
  String articleCateDesc;

  @JsonKey(name: 'articleType')
  int articleType;

  @JsonKey(name: 'articleTypeDesc')
  String articleTypeDesc;

  @JsonKey(name: 'title')
  String title;

  @JsonKey(name: 'authorName')
  String authorName;

  @JsonKey(name: 'publicDate')
  String publicDate;

  @JsonKey(name: 'articleStatus')
  int articleStatus;

  @JsonKey(name: 'iconImg')
  String iconImg;

  @JsonKey(name: 'browseAmount')
  int browseAmount;

  @JsonKey(name: 'showType')
  int showType;

  @JsonKey(name: 'showTypeDesc')
  String showTypeDesc;

  @JsonKey(name: 'sort')
  int sort;

  @JsonKey(name: 'createTime')
  String createTime;

  @JsonKey(name: 'updateTime')
  String updateTime;

  Article(this.id,this.articleId,this.appType,this.appName,this.articleCateType,this.articleCateDesc,this.articleType,this.articleTypeDesc,this.title,this.authorName,this.publicDate,this.articleStatus,this.iconImg,this.browseAmount,this.showType,this.showTypeDesc,this.sort,this.createTime,this.updateTime,);

  factory Article.fromJson(Map<String, dynamic> srcJson) => _$ArticleFromJson(srcJson);

  Map<String, dynamic> toJson() => _$ArticleToJson(this);

}

  
